﻿<!DOCTYPE html>
<html>
<head>
    <title>
        @ViewBag.Title
    </title>
    <link rel="shortcut icon" href="@Url.Content("~/f.ico")" type="image/x-icon" />
    @*css styles*@
    <link href="@Url.Content("~")Content/themes/@Html.Action("CurrentTheme", "ChangeTheme")/Site.css" rel="stylesheet" type="text/css" id="demoStyle" />
    <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/@Html.Action("CurrentTheme", "ChangeTheme")/jquery-ui.css" rel="stylesheet" id="jqStyle" />
    <link href="@Url.Content("~")Content/themes/@Html.Action("CurrentTheme", "ChangeTheme")/AwesomeMvc.css" rel="stylesheet" type="text/css" id="aweStyle" />
    <link href="@Url.Content("~/Content/Common.css")" rel="stylesheet" type="text/css" />
    @*js scripts*@
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.js"
        type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
    <script src="@Url.Content("~/Scripts/AwesomeMvc.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Site.js")" type="text/javascript"></script>
    <script type="text/javascript">
        //by default jquery.validate 1.9 doesn't validate hidden inputs
        jQuery.validator.setDefaults({ ignore: [] });

        $(function () {
            //parsing the unobtrusive attributes when we get content via ajax
            $(document).ajaxComplete(function (e, xhr, settings) {
                $.validator.unobtrusive.parse(document);

                //make server-side generated validation errors look like the client side ones
                $('.field-validation-error').each(function () {
                    if (!$(this).find('span').length) {
                        var x = $(this).html();
                        $(this).html('<span>' + x + '</span>');
                    }
                });
            });
            var root = '@Url.Content("~")';
            $('#chTheme').change(function () {
                var v = $(this).val();
                $('#jqStyle').attr('href', "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/" + v + "/jquery-ui.css");
                $('#aweStyle').attr('href', root + "Content/themes/" + v + "/AwesomeMvc.css");
                $('#demoStyle').attr('href', root + "Content/themes/" + v + "/Site.css");
                $.post('@Url.Action("Change", "ChangeTheme")', { s: v });
            });
        });


        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-27119754-1']);
        _gaq.push(['_setDomainName', 'aspnetawesome.com']);
        _gaq.push(['_trackPageview']);

        (function () {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();

    </script>
</head>
<body>
    <noscript>
        <div id="nos">
            this site works best with javascript allowed
        </div>
    </noscript>
    @Html.Partial("doggy")
    <div id="top-wrapper" class="ui-widget-header">
        <div id="header" class="container">
            <div id="hlogo">
                <a href="@Url.Content("~")" id="fun">
                    <img src='@Url.Content("~\\Content\\strawberry.png")' alt="logo" />
                </a>
            </div>
            <div class="hmenus">
                <div class="nav">
                    @Html.Action("Index", "Nav")
                </div>
            </div>
            <div class="trmi">
                @Html.Partial("login")
            </div>
            <div class="trmi">
                @Html.Action("index", "mui")
            </div>
            <div class="trmi">
                @Html.Action("Index", "ChangeTheme")
            </div>
        </div>
        <div class="cbt">
        </div>
    </div>
    <div id="main-container">
        <div id="main" class="maindiv ">
            @RenderBody()
        </div>
    </div>
    <div id="footer" class="ui-widget-header">
        <div class="maindiv">
            <span style="float: right; margin: 5px; padding: 5px;">
                <div class="fb-like" data-href="http://prodinner.aspnetawesome.com" data-send="true"
                    data-width="450" data-show-faces="false" data-font="arial">
                </div>
                <div id="fb-root">
                </div>
                <script>                    (function (d, s, id) {
                        var js, fjs = d.getElementsByTagName(s)[0];
                        if (d.getElementById(id)) return;
                        js = d.createElement(s); js.id = id;
                        js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
                        fjs.parentNode.insertBefore(js, fjs);
                    } (document, 'script', 'facebook-jssdk'));</script>
            </span><span style="margin: 10px; float: right;"><a href="https://twitter.com/share"
                class="twitter-share-button" data-url="http://prodinner.aspnetawesome.com" data-count="none"
                data-hashtags="aspnetawesome">Tweet</a>
                <script>                    !function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (!d.getElementById(id)) { js = d.createElement(s); js.id = id; js.src = "//platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); } } (document, "script", "twitter-wjs");</script>
            </span><span><a href='http://prodinner.codeplex.com'>project home: http://prodinner.codeplex.com</a></span>
        </div>
    </div>
</body>
</html>
